﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
	x:Class="Nadia.MyApp"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
	shell:SystemTray.IsVisible="True">
	<phone:PhoneApplicationPage.Resources>
		
		<DataTemplate x:Key="DataTemplate">
			<Grid Height="278" Width="456">
				<Grid.ColumnDefinitions>
				
				</Grid.ColumnDefinitions>
				<Grid Height="118" VerticalAlignment="Top" d:LayoutOverrides="GridBox">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="0.213*"/>
						<ColumnDefinition Width="0.787*"/>
					</Grid.ColumnDefinitions>
					<TextBlock TextWrapping="Wrap" Text="{Binding Title}" FontSize="24" FontFamily="Segoe UI Mono" FontWeight="Bold" Margin="0" VerticalAlignment="Top" Grid.Column="1" Foreground="#FFEB0404"/>
					<Image Margin="0,0,8,29" Source="ApplicationIcon.png" Stretch="Fill"/>
				</Grid>
				<StackPanel d:LayoutOverrides="Width, GridBox" Margin="0,118,0,0">
					<TextBlock TextWrapping="Wrap" Text="{Binding Description}" FontSize="21.333" FontFamily="Segoe UI Mono" Margin="14,0,0,0" FontWeight="Bold"/>
					<TextBlock TextWrapping="Wrap" Text="{Binding Link}" Margin="14,7,0,0" FontSize="13.333" FontFamily="Segoe UI Mono"/>
					<TextBlock TextWrapping="Wrap" Text="{Binding Date}" Margin="267,7,0,0" FontSize="14.667" FontFamily="Segoe UI Mono" FontWeight="Bold"/>
				</StackPanel>
			</Grid>
		</DataTemplate>
	</phone:PhoneApplicationPage.Resources>
	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilySemiBold"/>
	</phone:PhoneApplicationPage.FontFamily>

	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent">
		<!--Pivot Control-->
		<controls:Pivot FontWeight="Bold" Margin="-8,76,8,0" FontFamily="Segoe WP Black">
			<controls:Pivot.Foreground>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="White" Offset="0.807"/>
					<GradientStop Color="#FF252525" Offset="1"/>
				</LinearGradientBrush>
			</controls:Pivot.Foreground>
			<controls:Pivot.BorderBrush>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="Black" Offset="0"/>
					<GradientStop Color="White" Offset="1"/>
				</LinearGradientBrush>
			</controls:Pivot.BorderBrush>
			<controls:Pivot.Background>
				<ImageBrush ImageSource="/BG black.png"/>
			</controls:Pivot.Background>
			<!--Pivot item one-->
			<!--Pivot item two-->

<!--Pivot item one-->
			<controls:PivotItem x:Name="Recent" Header="Recent">
				<controls:PivotItem.Foreground>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="White" Offset="0"/>
						<GradientStop Color="White" Offset="1"/>
					</LinearGradientBrush>
				</controls:PivotItem.Foreground>
				<Grid Tap="Grid_Tap">
					<Grid.Background>
						<ImageBrush Stretch="Fill"/>
					</Grid.Background>
					<ListBox x:Name="ListAllkpop" ItemTemplate="{StaticResource DataTemplate}" SelectionChanged="ListAllkpop_SelectionChanged"/>
				</Grid>
			</controls:PivotItem>

<!--Pivot item one-->
			<controls:PivotItem x:Name="Search" Header="Search">
				<StackPanel>
					<TextBox x:Name="input" TextWrapping="Wrap" Height="116" BorderBrush="{x:Null}" Foreground="Black" Background="#B0FFFFFF" SelectionForeground="Black"/>
					<Button Content="Search" HorizontalAlignment="Right" Width="148" Click="Button_Click" BorderBrush="{x:Null}" Background="#B3D6D1D1">
						<Button.Foreground>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="Black" Offset="0"/>
								<GradientStop Color="#FF3B3737" Offset="1"/>
							</LinearGradientBrush>
						</Button.Foreground>
					</Button>
				</StackPanel>
			</controls:PivotItem>
			<controls:PivotItem x:Name="About" Header="About" Background="#34686868" Foreground="{x:Null}" FontWeight="Bold" FontFamily="Segoe WP Semibold">
				<TextBlock TextWrapping="Wrap" Margin="18,32,17,8" Foreground="White" FontFamily="Segoe WP Semibold" FontWeight="Bold" FontSize="21.333"><Run Text="     K-pop (Korean Pop) is currently one of the fastest growing global phenomena to hit the pop culture scene."/><LineBreak/><Run Text="     Launched in October2007 , allkpop.com (parent company 6Theory) has become the premier source for all the latest K-pop celebrity gossip and news. Catering to over 4 million monthly readers worldwide, and serving over 75 million pageviews per month, allkpop is the most trafficked English based K-pop news site in the world. allkpop works around the clock to be the first to deliver minute to minute breaking news, gossip, and the most exclusive coverage on the hottest K-pop stars."/><LineBreak/><Run/></TextBlock>
			</controls:PivotItem>
			
		</controls:Pivot>
		<StackPanel Height="76" VerticalAlignment="Top" HorizontalAlignment="Left" Width="480" Margin="-8,0,0,0">
			<StackPanel.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="White" Offset="0.799"/>
					<GradientStop Color="Black" Offset="1"/>
				</LinearGradientBrush>
			</StackPanel.Background>
			<Image Height="71" Source="allkpop_logo1.png" Stretch="Fill" VerticalAlignment="Top" Margin="8,0,221,0"/>
		</StackPanel>
	</Grid>
</phone:PhoneApplicationPage>